<template lang="html">
  <section class="nav_page">
    <div class="header">
      <h1>江门市大数据作战平台</h1>
    </div>
    <div class="nav_container">
      <router-link :to="{ name: 'home', params: {} }">
        <div class="homePage link-wrapper">
          <img src="../../src/assets/img/nav/home.png" alt="">
        </div>
      </router-link>
      <router-link :to="{ name: 'travel', params: {} }">
        <div class="travelPage link-wrapper">
          <img src="../../src/assets/img/nav/travel.png" alt="">
        </div>
      </router-link>
      <router-link :to="{ name: 'dataService', params: {} }">
        <div class="dataService link-wrapper">
          <img src="../../src/assets/img/nav/dataservice.png" alt="">
        </div>
      </router-link>
    </div>
  </section>
</template>

<script>
export default {
}
</script>

<style lang="scss" scoped>
  .nav_page{
    width: 100%;
    min-width: 1200px;
  }
  .header {
    width : 1060 / 1920 * 100%;
    height: 90px;
    margin: 0 auto;
    background: url('../assets/img/header-bg.png') center 0px no-repeat;
    background-size: 100% 98%;
    position: relative;
    h1 {
      font-size: 36px;
      color: #49d9fe;
      font-weight: 600;
      line-height:104px;
      text-align: center;
      margin-top: -20px;
    }
  }
  .nav_container {
    padding-top: 30px;
    text-align: center;
  }
  .link-wrapper {
    width: 35%;
    display: inline-block;
    vertical-align: top;
    margin-left: 10px;
    box-sizing: border-box;
    &::before{
      content: '';
      padding-top: 56%;
      float: left;
    }
    &::after{
      content: '';
      display: block;
      clear: both;
    }
    &:hover {
      border : 2px solid yellow;
    }
    img {
      width: 100%;
      height: 100%;
    }
  }
</style>
